package com.dao.productcollect;

import com.entry.Productcollect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductcollectMapper {
    public int addProductCollect(@Param("productcollect_product_id") int productcollect_product_id,
                                 @Param("productcollect_member_id") int productcollect_member_id);
    public int getIsCollect(@Param("productcollect_product_id") int productcollect_product_id,
                                 @Param("productcollect_member_id") int productcollect_member_id);

    public List<Productcollect> getAllProductCollect(int productcollect_member_id);

    public int RemoveProductCollect(@Param("productcollect_product_id") int productcollect_product_id,
                                 @Param("productcollect_member_id") int productcollect_member_id);
}
